package com.mnsq.common.bean.entity.book;

import com.mnsq.common.bean.entity.CommonEntity;
import com.mnsq.common.tools.tool.UUIDUtils;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 *
 * @author Administrator
 * @date 2019/1/21 0021
 */
@Data
@Accessors(chain = true)
@Entity
@Table(name = "x_book_info")
public class BookInfo extends CommonEntity {
    private static final long serialVersionUID = 82356643829317881L;
    /**
     * 文字数量
     */
    @Column(name = "words_num")
    private Integer wordsNum;
    /**
     * 地域
     */
    private String region;
    /**
     * 重量
     */
    private String weight;
    /**
     * 主色调
     */
    @Column(name = "main_color")
    private String mainColor;

    public BookInfo(){
        super();
        super.setUnique(UUIDUtils.getUnique());
    }
}
